<!DOCTYPE html>
<html>
<head>
     <meta charset="utf-8">
      <title>修改视频信息</title>
      <link rel="stylesheet"  href="./assets/css/bootstrap.min.css">
</head>
<?php
$row=$data['video'];//一条记录
?>
<body>

   
   <form class="form-horizontal"  method="post"  action="admin.php?c=video&m=updatevideo" enctype="multipart/form-data">

    <input type="hidden" name="vid"  value="<?php echo $row['vid'];?>">
      <div class="form-group">
    <label for="inputEmail3" class="col-md-2 control-label">视频名称</label>
    <div class="col-md-6">
      <input type="text"class="form-control" name="videoname" value="<?php echo $row['videoname'];?>"</div>
      </div>
      </div>



    <div class="form-group">
    <label for="inputDate3" class="col-md-2 control-label">视频类型</label> 
    <div class="col-md-6">
        <select class="form-control" name="typename" id="">  
         <option value="1"<?php  if($row[typename]=='1') echo 'selected';  ?>>电影</option>
         <option value="2"<?php  if($row[typename]=='2') echo 'selected';  ?>>电视剧</option>
         <option value="3"<?php  if($row[typename]=='3') echo 'selected';  ?>>话剧</option>
         <option value="4"<?php  if($row[typename]=='4') echo 'selected';  ?>>音乐剧</option>
     </select>

       </div>
  </div>


<div class="form-group">
    <label  class="col-md-2 control-label">海报</label>
    <div class="col-md-6">
        <input type="file" name="pic"></div>
        </div>
        
<div class="form-group">
    
    <div class="col-md-offset-6 col-md-4">
      
    原海报:<img src="./poster/<?php echo $row['pic'];?>" width="80" height="80"  alt="">
        </div>
        </div>


        <div class="form-group">
    <label for="inputText3" class="col-md-2 control-label">视频介绍</label> 
    <div class="col-md-6">
        <textarea name="intro" id="" class="form-control" rows="3" ><?php echo $row['intro'];?></textarea></div>
        </div>

<div class="form-group">
    <label for="input3" class="col-md-2 control-label">下载地址</label>
    <div class="col-md-6">
        <textarea name="address" class="form-control" rows="2" id="input3"><?php echo $row['address'];?></textarea></div>
        </div>


<div class="form-group">
    <div class="col-md-offset-2 col-md-6">
      <button type="submit" class="btn btn-default">添加</button>
        </div>
        </div>
        </from>
</body>
</html>